#include<iostream>
#include<cstring>
#include<string>
using namespace std;
int main()
{
	char s[1010];
	fgets(s,1010,stdin);
	int count = 0;
	for (int i = 0; i < strlen(s) - 1; i++) {
		if (s[i]>='0'&&s[i]<='9') {
			count++;
		}
		if (s[i] >= 'a' && s[i] <= 'z') {
			count++;
		}
		if (s[i] >= 'A' && s[i] <= 'Z') {
			count++;
		}
	}
	cout << count << endl;
	return 0;
}